<?php
declare (strict_types = 1);

namespace app\event;

class ActivityOpen
{
    public $activity;

    public function __construct($activity)
    {
        $this->activity=$activity;
    }
    public function GetId(){
        return $this->activity->id;
    }

    /**
     * @return mixed
     */
    public function GetActivity()
    {
        return $this->activity;
    }

    /**
     * @return mixed
     */
    public function GetWinNum()
    {
        return $this->activity->win_num;
    }

    /**
     * @return mixed
     */
    public function GetCode()
    {
        return $this->activity->code;
    }
    /**
     * @return mixed
     */
    public function GetType()
    {
        return $this->activity->type;
    }
    public function GetName()
    {
        return $this->activity->name;
    }
}
